package com.lsmw.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lsmw.commonutils.R;
import com.lsmw.order.entity.LsOrder;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 三号男嘉宾
 * @since 2021-03-19
 */
public interface LsOrderService extends IService<LsOrder> {
    //获取所有订单信息
    R getOrders();

    //根据用户id查询其所有订单信息
    R getOrdersByUserId(Long userId);

    //添加订单信息
    R addOrder(LsOrder lsOrder);

    //修改订单信息
    R updateOrder(LsOrder lsOrder);

    //根据订单id删除订单信息
    R deleteOrderByOrderId(String orderId);

    //根据多个订单id删除订单信息
    R deleteOrderByOrderIds(List<String> orderIds);
}
